package com.fwmagic.redis;

import redis.clients.jedis.Jedis;

public class ZSetValue {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("192.168.62.131", 6379, 5000);

        //往zset【K,TreeSet】里面添加数据
        jedis.zadd("z2", 10, "spark");

        jedis.zadd("z2", 12, "hive");

        jedis.zincrby("z2", 8.8, "hbase");

        jedis.zincrby("z2", -1, "hive");

        jedis.close();
    }
}
